﻿package rd.hardcore.events 
{
	import flash.events.Event;
	import rd.hardcore.datas.Track;
	
	/**
	 * ...
	 * @author Romain Prache
	 */
	public class SoundSystemEvent extends Event 
	{
		
		/* VAR */
		static public const PLAY_SOUND	: String = "giveMeAFuckinSound";
		static public const STOP_SOUND	: String = "stopSound";
		static public const KILL_SOUND	: String = "killSound";
		
		public var track : Track;
		
		/* SoundSystemEvent */
		public function SoundSystemEvent(type:String, track : Track, bubbles:Boolean=false, cancelable:Boolean=false) 
		{ 
			super(type, bubbles, cancelable);
			this.track = track;
		} 
		
		public override function clone():Event 
		{ 
			return new SoundSystemEvent(type, track,bubbles, cancelable);
		} 
		
		public override function toString():String 
		{ 
			return formatToString("SoundSystemEvent", "type", "track","bubbles", "cancelable", "eventPhase"); 
		}
		
	}
	
}